SetMenuItemCommandID
NEW WITH THE APPEARANCE MANAGER
Sets a menu item's command ID.
pascal OSErr SetMenuItemCommandID ( MenuHandle inMenu, SInt16 inItem, UInt32 inCommandID);
inMenu
- The handle to the menu structure of the menu item for which you wish to set a command ID.
inItem
- An integer representing the item number of the menu item for which you wish to set a command ID.
inCommandID
- An integer representing the command ID that you wish to set.
- function result
- A result code; see "Result Codes".
DISCUSSION
You can use a menu item's command ID as a position-independent method of signalling a specific action in an application.SEE ALSO
"Appearance Manager Gestalt Selector Constants".